<template>
    <el-popover
        width="fit-content"
        placement="bottom-end"
        trigger="click">
        <div class="qrcode">
            <img src="https://www.weiyun.com/php/phpqrcode/qrcode.php?data=https%3A%2F%2Fshare.weiyun.com%2F1OOL1sv5&level=5&size=4" alt="">
        </div>
        <el-tooltip  slot="reference" effect="dark" content="二维码" placement="top">
            <div class="qrcode_bt">
                <i class="icon-code icon"></i>
            </div>
        </el-tooltip>
    </el-popover>
</template>
<script>
export default { //二维码按钮组件
    name:'Qrcode_bt',
    data(){
        return{

        };
    },
    created(){

    },
    methods:{

    },
}
</script>
<style lang="scss" scoped>
.qrcode{
    img{
        width: 180px;
        height: 180px;
    }
}
.qrcode_bt{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0 10px;
    box-sizing: border-box;
    i{
        width: 24px;
        height: 24px;
    }
}
</style>